package com.bawei.erp.service;

import java.util.List;

import com.bawei.erp.model.Stock;

public interface StockService {

	void addStock(Stock stock);

	void updateStock(Stock stock);

	void deleteStock(Long id);

	List<Stock> getStock();

	Stock getStockById(Long id);

	void updateStockBySKU(Stock stock);

	void stockIn(String sku, int count, Byte type);

	void stockOut(String sku, int count, Byte type);

	Stock getStockBySKU(String sku);

	int getValidCount(String sku);

	void lockStock(String sku, int count);

	void lock(String sku);

	void unLock(String sku);

}
